import request from '@/utils/request'

export default {
    // 搜索机票
    searchHotels(params) {
        return request.post('/hotel/search', params, {
            loadingText: '正在搜索酒店...'
        })
    },

    exportExcel(exportParams) {
        return request.post('/hotel/export', exportParams, {
            responseType: 'blob'
        })
    },

    // 获取便捷景点列表
    getAllCities() {
        return request.get('/hotel/cities')
    },

    // 根据城市ID获取便捷景点
    getAttractionsByCityId(cityId) {
        return request.get(`/hotel/attractions/convenient/city/${cityId}`)
    }
}